package com.zmy.xcx.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("hypertension_medication")
public class HypertensionMedication {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("drug_name")
    private String drugName;

    @TableField("is_prescription")
    private Integer isPrescription;

    @TableField("category")
    private String category;

    @TableField("sources") //来源指南（用/分隔多个来源）
    private String sources;

    @TableField("clicks")
    private Integer clicks = 0;  // 默认值直接初始化

    @TableField("url")
    private String url;
}